package com.tpyule.tpclass.entity.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zzz
 * @date 2020/3/19 下午 4:09
 */
public class Course {

  private String courseId;
  private String userId;
  private String sortId;
  /**
   * 标题
   */
  private String title;
  /**
   * 课程首图
   */
  private String imageUrl;
  /**
   * 课程简介
   */
  private String introduction;
  /**
   * 价格
   */
  private double price ;
  /**
   * 折扣价格
   */
  private double discountPrice;
  /**
   * 课程属性：0：免费课程 1：收费课程
   */
  private int property;
  /**
   * 课程时长（分钟）
   */
  private int duration;
  /**
   * 课程须知
   */
  private String notice;
  /**
   * 课程难度：1：入门 2：初级 3：中级 4：高级
   */
  private int difficulty;
  /**
   * 老师说（可以学到那些）
   */
  private String teacherNotice;
  /**
   * 综合评分
   */
  private double overallRate;

  private int rateNumber;
  /**
   * 课程人数
   */
  private int number;
  /**
   * 评分1：内容实用
   */
  private double rate1;
  /**
   * 评分2：简洁易懂
   */
  private double rate2;
  /**
   * 评分3：逻辑清晰
   */
  private double rate3;
  /**
   * 课程状态：0：未发布 1：连载 2：完结 3：封禁
   */
  private int state;
  /**
   * 审核状态：0：未提交 1：审核中 2：审核通过 3：审核未通过
   */
  private int reviewState;
  /**
   * 是否删除：0：已删除 1：未删除
   */
  private int remove;
  /**
   * 发布时间
   */
  private String createTime;

  private String hotWord;

  public Course() {
    this.price = 0;
    this.discountPrice = 0;
    this.property = 0;
    this.duration = 0;
    this.overallRate = 0;
    this.rateNumber = 0;
    this.number = 0;
    this.rate1 = 0;
    this.rate2 = 0;
    this.rate3 = 0;
    this.state = 0;
    this.reviewState = 0;
    this.remove = 1;
    this.createTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
  }

  public String getCourseId() {
    return courseId;
  }

  public void setCourseId(String courseId) {
    this.courseId = courseId;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getSortId() {
    return sortId;
  }

  public void setSortId(String sortId) {
    this.sortId = sortId;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getImageUrl() {
    return imageUrl;
  }

  public void setImageUrl(String imageUrl) {
    this.imageUrl = imageUrl;
  }

  public String getIntroduction() {
    return introduction;
  }

  public void setIntroduction(String introduction) {
    this.introduction = introduction;
  }

  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public double getDiscountPrice() {
    return discountPrice;
  }

  public void setDiscountPrice(double discountPrice) {
    this.discountPrice = discountPrice;
  }

  public int getProperty() {
    return property;
  }

  public void setProperty(int property) {
    this.property = property;
  }

  public int getDuration() {
    return duration;
  }

  public void setDuration(int duration) {
    this.duration = duration;
  }

  public String getNotice() {
    return notice;
  }

  public void setNotice(String notice) {
    this.notice = notice;
  }

  public int getDifficulty() {
    return difficulty;
  }

  public void setDifficulty(int difficulty) {
    this.difficulty = difficulty;
  }

  public String getTeacherNotice() {
    return teacherNotice;
  }

  public void setTeacherNotice(String teacherNotice) {
    this.teacherNotice = teacherNotice;
  }

  public void setOverallRate(double overallRate) {
    this.overallRate = overallRate;
  }

  public double getOverallRate() {
    return overallRate;
  }

  public int getNumber() {
    return number;
  }

  public void setNumber(int number) {
    this.number = number;
  }

  public double getRate1() {
    return rate1;
  }

  public void setRate1(double rate1) {
    this.rate1 = rate1;
  }

  public double getRate2() {
    return rate2;
  }

  public void setRate2(double rate2) {
    this.rate2 = rate2;
  }

  public double getRate3() {
    return rate3;
  }

  public void setRate3(double rate3) {
    this.rate3 = rate3;
  }

  public int getState() {
    return state;
  }

  public void setState(int state) {
    this.state = state;
  }

  public int getReviewState() {
    return reviewState;
  }

  public void setReviewState(int reviewState) {
    this.reviewState = reviewState;
  }

  public int getRemove() {
    return remove;
  }

  public void setRemove(int remove) {
    this.remove = remove;
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public String getHotWord() {
    return hotWord;
  }

  public void setHotWord(String hotWord) {
    this.hotWord = hotWord;
  }

  public int getRateNumber() {
    return rateNumber;
  }

  public void setRateNumber(int rateNumber) {
    this.rateNumber = rateNumber;
  }
}
